<!DOCTYPE html>

<html>
  <head>
    <meta charset="UTF-8" />
    <title>弹性方向</title>
    <!-- 设置标题栏中标题之前的小图标 -->
    <link rel="shortcut icon" href="kfm.jpg" type="image/x-icon">
    <!-- 链接外部样式文件 -->
    <link rel="stylesheet" href="direction.css">
  </head>
  <body>
    <h3>弹性方向</h3>

    <div class="wrapper">
        <p class="title">flex-direction: row</p>
        <p class="desc">主轴: 水平从左到右 / 交叉轴: 垂直从上到下</p>
        <div class="flex-container first">
            <div class="flex-item">天</div>
            <div class="flex-item">地</div>
            <div class="flex-item">玄</div>
            <div class="flex-item">黄</div>
        </div>
    </div>

    <div class="wrapper">
        <p class="title">flex-direction: row-reverse</p>
        <p class="desc">主轴: 水平从<b>右</b>到<b>左</b> / 交叉轴: 垂直从上到下</p>
        <div class="flex-container second">
            <div class="flex-item">天</div>
            <div class="flex-item">地</div>
            <div class="flex-item">玄</div>
            <div class="flex-item">黄</div>
        </div>
    </div>

    <div class="wrapper">
        <p class="title">flex-direction: column</p>
        <p class="desc">主轴: 垂直从<b>上</b>到<b>下</b> / 交叉轴: 水平从左到右</p>
        <div class="flex-container third">
            <div class="flex-item">天</div>
            <div class="flex-item">地</div>
            <div class="flex-item">玄</div>
            <div class="flex-item">黄</div>
        </div>
    </div>

    <div class="wrapper">
        <p class="title">flex-direction: column-reverse</p>
        <p class="desc">主轴: 垂直从<b>下</b>到<b>上</b> / 交叉轴: 水平从左到右</p>
        <div class="flex-container fourth">
            <div class="flex-item">天</div>
            <div class="flex-item">地</div>
            <div class="flex-item">玄</div>
            <div class="flex-item">黄</div>
        </div>
    </div>

  </body>
</html>
